<?php
/**
 * @file
 * feeds_import.feeds_importer_default.inc
 */

/**
 * Implementation of hook_data_default().
 */
function data_data_default() {
  $export = array();

  $data_table = new stdClass;
  $data_table->disabled = FALSE; /* Edit this to true to make a default data_table disabled initially */
  $data_table->api_version = 1;
  $data_table->title = 'Data tables';
  $data_table->name = 'data_tables';
  $data_table->table_schema = array(
    'fields' => array(
      'title' => array(
        'description' => 'Natural name of the table.',
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
        'default' => '',
      ),
      'name' => array(
        'description' => 'Table name.',
        'type' => 'varchar',
        'length' => '128',
        'not null' => TRUE,
        'default' => '',
      ),
      'table_schema' => array(
        'description' => 'Table schema.',
        'type' => 'text',
        'not null' => FALSE,
      ),
      'meta' => array(
        'description' => 'Meta information about the table and its fields.',
        'type' => 'text',
        'not null' => FALSE,
      ),
    ),
     'primary key' => array('name'),
  );
  $data_table->meta = array(
    'fields' => array(
      'title' => array(
        'label' => 'Natural name',
      ),
    ),
  );


  $export['data_tables'] = $data_table;
  
  return $export;
}
